package com.ourteam.product.ui.dao;

import net.dao.IDataAccessInterface;

/**
 * Template Name : DAO接口模板 Template Version : 1 Template Last Modfiy Date : Thu Sep 21 11:14:14 CST
 * 2017 Auto Generate Date : 2018-12-14 15:15:05 Warning ! This file will be overwrite when
 * regenerate !
 */
public interface IBaseProductUITreeRootNodeDAO
    extends IDataAccessInterface<ProductUITreeRootNode, ProductUITreeRootNodeDAOQueryBean> {

  /** Mapped Entity Name */
  static final String EntityName = "PRODUCT_UI_TREE_ROOT_NODE";

  /** Mapped Field ID */
  static final String Id = "PRODUCT_UI_TREE_ROOT_NODE.ID";

  /** Mapped Field TREE_ID */
  static final String TreeId = "PRODUCT_UI_TREE_ROOT_NODE.TREE_ID";

  /** Mapped Field PARENT_ID */
  static final String ParentId = "PRODUCT_UI_TREE_ROOT_NODE.PARENT_ID";

  /** Mapped Field NODE_ID */
  static final String NodeId = "PRODUCT_UI_TREE_ROOT_NODE.NODE_ID";

  /** Mapped Field SORT_INDEX */
  static final String SortIndex = "PRODUCT_UI_TREE_ROOT_NODE.SORT_INDEX";

  public static interface DataProperty {

    /** Attribute id */
    static final String Id = "id";

    /** Attribute treeId */
    static final String TreeId = "treeId";

    /** Attribute parentId */
    static final String ParentId = "parentId";

    /** Attribute nodeId */
    static final String NodeId = "nodeId";

    /** Attribute sortIndex */
    static final String SortIndex = "sortIndex";
  }

  public static interface _DataObjectProperty extends DataProperty {}

  /**
   * Delete Data
   *
   * @param final long id
   * @throws Exception
   */
  void delete(final long id) throws Exception;
  /**
   * Find Data By Primary Key
   *
   * @param final long id
   * @throws Exception
   */
  ProductUITreeRootNode findById(final long id) throws Exception;
}
